{ *** cef_browser_process_handler_capi.h  *** }

    PCefBrowserProcessHandler = ^TCefBrowserProcessHandler;
  
    // Structure used to implement browser process callbacks. The functions of this
    // structure will be called on the browser process main thread unless otherwise
    // indicated.
    TCefBrowserProcessHandler = record
        // Base structure.
        base: TCefBase;

        // Called on the browser process UI thread immediately after the CEF context
        // has been initialized.
        on_context_initialized: procedure(self: PCefBrowserProcessHandler); cconv;

        // Called before a child process is launched. Will be called on the browser
        // process UI thread when launching a render process and on the browser
        // process IO thread when launching a GPU or plugin process. Provides an
        // opportunity to modify the child process command line. Do not keep a
        // reference to |command_line| outside of this function.
        on_before_child_process_launch: procedure(self: PCefBrowserProcessHandler; command_line: PCefCommandLine); cconv;

        // Called on the browser process IO thread after the main thread has been
        // created for a new render process. Provides an opportunity to specify extra
        // information that will be passed to
        // cef_render_process_handler_t::on_render_thread_created() in the render
        // process. Do not keep a reference to |extra_info| outside of this function.
        on_render_process_thread_created: procedure(self: PCefBrowserProcessHandler; extra_info: PCefListValue); cconv;

        {$ifdef cef_stable}
        {$endif cef_stable}
        {$ifdef cef_trunk}
        // Return the handler for printing on Linux. If a print handler is not
        // provided then printing will not be supported on the Linux platform.
        get_print_handler: function(self: PCefBrowserProcessHandler): PCefPrintHandler; cconv;
        {$endif cef_trunk}
    end;


